package com.ruoyi.project.zxcrm.utils;

import java.util.regex.Pattern;

/*
校验手机号
 */
public class verifyPhone {
    public static Boolean verifyPhone(String mobile) {
        String regex = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$";
        if (Pattern.matches(regex, mobile)) {
            return true;
        }
        return false;
    }
}
